import request from '@/utils/request'

// 查询车载视频管控列表
export function listOnboardVideoControl(query) {
  return request({
    url: '/ys/onboardVideoControl/list',
    method: 'get',
    params: query
  })
}

// 查询车载视频管控详细
export function getOnboardVideoControl(id) {
  return request({
    url: '/ys/onboardVideoControl/' + id,
    method: 'get'
  })
}

// 新增车载视频管控
export function addOnboardVideoControl(data) {
  return request({
    url: '/ys/onboardVideoControl',
    method: 'post',
    data: data
  })
}

// 修改车载视频管控
export function updateOnboardVideoControl(data) {
  return request({
    url: '/ys/onboardVideoControl',
    method: 'put',
    data: data
  })
}

// 删除车载视频管控
export function delOnboardVideoControl(id) {
  return request({
    url: '/ys/onboardVideoControl/' + id,
    method: 'delete'
  })
}
